package com.wecon.dianping.common;

/**
 * @author Weikang  Wang
 * @program: com.wecon.dianping.common
 * @description: 通用返回错误
 * @date 2020/3/11 15:07
 */
public class CommonError {

    /**
     * 错误码
     */
    private Integer errorCode;

    /**
     * 错误信息
     */
    private String errorMsg;

    public CommonError(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public CommonError(EmBusinessError emBusinessError) {
        this.errorCode = emBusinessError.getErrorCode();
        this.errorMsg = emBusinessError.getErrorMsg();
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
